package com.study_online.controller;

import com.study_online.domain.ResultInfo;
import com.study_online.service.ForumTypeService;
import com.study_online.service.VideoTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ForumType")
public class ForumTypeContorller {

    @Autowired
    private ForumTypeService forumTypeService;

    @RequestMapping("/findAllForumByType")
    public ResultInfo findAllForumByType(){
        ResultInfo all = forumTypeService.findAllForumByType();
        return all;
    }
}
